/* -----------------------------------------------------------------------------
** Copyright (c) 2012 Advanced Resources and Risk Technology, LLC
** All rights reserved.
**
** This file is part of Advanced Resources and Risk Technology, LLC (AR2TECH) 
** version of the open source software sgems.  It is a derivative work by 
** AR2TECH (THE LICENSOR) based on the x-free license granted in the original 
** version of the software (see notice below) and now sublicensed such that it 
** cannot be distributed or modified without the explicit and written permission 
** of AR2TECH.
**
** Only AR2TECH can modify, alter or revoke the licensing terms for this 
** file/software.
**
** This file cannot be modified or distributed without the explicit and written 
** consent of AR2TECH.
**
** Contact Dr. Alex Boucher (aboucher@ar2tech.com) for any questions regarding
** the licensing of this file/software
**
** The open-source version of sgems can be downloaded at 
** sourceforge.net/projects/sgems.
** ----------------------------------------------------------------------------*/




#include <charts/chart_base.h>

#include <GsTL/utils/smartptr.h>
#include <utils/manager.h>
#include <appli/manager_repository.h>

#include <QSplitter>
#include <QLayout>

Chart_base::Chart_base(QWidget *parent)
  : QFrame(parent)
{
  /*
  qvtkWidget_ = new QVTKWidget(this);
	view_ = vtkSmartPointer<vtkContextView>::New();
	view_->SetInteractor(qvtkWidget_->GetInteractor());
	qvtkWidget_->SetRenderWindow(view_->GetRenderWindow());
	chart_ = vtkSmartPointer<vtkChartXY>::New();
	view_->GetScene()->AddItem(chart_);
  */
//	tableView_ = vtkSmartPointer<vtkQtTableView>::New();
//	table_ = vtkSmartPointer<vtkTable>::New();

//	QSplitter* mainSplitter = new QSplitter(Qt::Horizontal, this);

//	mainSplitter->addWidget(qvtkWidget_);
//	mainSplitter->addWidget(tableView_->GetWidget());

//	this->layout()->addWidget(mainSplitter);

	this->setAcceptDrops(true);
}

Chart_base::~Chart_base()
{

}
